package com.okoj.excel_lib_rary.oss;

import java.util.ArrayList;
import java.util.List;

/**
 * 卡点相关常量类
 */
public class KdConst {

    /**-----------卡点的热门、上新固定的特殊分类ID---------------------------*/
    public static final int CATEGORY_ID_HOT = -100;
    public static final int CATEGORY_ID_NEW = -101;

    private final static List<Integer> specialCategoryIdList = new ArrayList<>();
    static {
        specialCategoryIdList.add(CATEGORY_ID_HOT);
        specialCategoryIdList.add(CATEGORY_ID_NEW);
    }

    /**
     * 判断categoryId所属的分类id是否为固定的特殊分类ID
     * @param categoryId
     * @return
     */
    public static boolean isSpecialCategoryId(int categoryId) {
        return specialCategoryIdList.contains(categoryId);
    }


    /**-----------卡点的热门、上新的分类TAG---------------------------*/
    public static final String TAG_HOT = "热门";
    public static final String TAG_NEW = "上新";


}
